package com.bao123.userinfo.entities;

import com.bao123.userinfo.entities.base.BaseUserinfo;

import java.io.Serializable;

/**
 * 用户信息表
 * @author lbw
 */
public class Userinfo extends BaseUserinfo implements Serializable {
    private static final long serialVersionUID = 1L;



    @Override
    public boolean equals(Object o) {
        if (!(o instanceof Userinfo)){
            return false;
        }
        return this.hashCode() == o.hashCode();
    }

    @Override
    public int hashCode() {
        return getUserId().hashCode();
    }

}
